package org.example.chenniyrpcspringbootconsumer;

import PO.User;
import Service.UserService;
import org.example.chenniyrpcspingbootstarter.annotation.RpcReference;
import org.springframework.stereotype.Service;

@Service
public class TestImpl {
    
    @RpcReference
    private UserService userService;

    public void test(){
        User user = new User();
        user.setName("小明");
        User newUser = userService.getUser(user);
        System.out.print(newUser);
    }
}
